from django.contrib.contenttypes.models import ContentType
from rest_framework import serializers
from django.contrib.auth.models import Permission


class PerssionsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Permission
        fields = '__all__'



class ContentTypeserialzier(serializers.ModelSerializer):
    name = serializers.CharField(read_only=True)
    class Meta:
        model = ContentType
        fields = '__all__'